var express = require("express");
var router = express.Router();
const { visitor } = require("../models/model");

// 获取用户消息列表
router.get("/visitor", async (req, res) => {
  let data = await visitor.find({});
  res.send({ data, code: 200 });
});

module.exports = router;
